package com.qf.service.impl;

import com.qf.mapper.DtsUserMapper;
import com.qf.mapper.StatMapper;
import com.qf.pojo.DtsUser;
import com.qf.service.DtsUserService;
import com.qf.vo.DayStatis;
import com.qf.vo.StatVo;
import com.qf.vo.UserOrderCntVo;
import com.qf.vo.UserVoTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DtsUserServiceImpl implements DtsUserService {
    @Autowired
    DtsUserMapper dtsUserMapper;
    @Autowired
    StatMapper statMapper;
    @Override
    public Integer findCount() {
        Integer count = dtsUserMapper.selectCount(null);
        return count;
    }

    @Override
    public List<DayStatis> findUserStatis() {

        return statMapper.findUserCnts();
    }

    @Override
    public List<UserVoTest> findUser() {
        return statMapper.findUser();
    }
}
